package com.example.demo.mapper;

import com.example.demo.pojo.Users;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

@Repository
public interface UsersMapper {
    /**
     * 添加用户
     * @param users
     * @return
     */
    int addUser(Users users);
    /**
     * 通过名字查询用户
     * @param name
     * @return
     */
    int selectUsersByName(String name);

    /**
     * 修改用户
     * @param users
     * @return
     */
    int updateUser(Users users);
}
